# -*- coding: utf-8 -*-
# created by Alberthch - 陈航  2021/7/15 19:56
# Description:你的程序已经出现了一大堆已经无法直视的硬编码切片下标，然后你想清理代码

record = '..........100..........513.25...'
# 包含前面，不包含后面，左闭右开
# 内置slice函数，生成切片对象
SHARES = slice(10, 13)
PRICE = slice(23, 29)
print(record[SHARES])
print(record[PRICE])
